package com.ys.web.ws.bean;

import com.ys.base.BaseBean;
import com.ys.base.BaseParam;
import com.ys.utils.base.j2se.StringHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @ 名称:回复消息实体
 * @ 创建人: dhf
 * @ 参数： null
 * @ 创建时间: 2022/5/11
 * @ 修改人和其它信息
 * @ 返回值:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class MessageResponseBean extends BaseBean {

    public String clientId;
    /**
     * 用户名称
     */
    public String userName;

    /**
     * 消息数据类型
     */
    public Integer code;

    /**
     * 消息来自谁
     */
    public String from;
    /**
     * 组 id
     */
    public String groupId;

    /**
     * 用户头像
     */
    public String avatarUrl;
    /**
     * 消息内容
     */
    public String data;
    /**
     * 创建时间
     */
    public String createTime;

    /**
     * 窗口Id
     */
    public String windowId;

    public String messageId;

    public double width;

    public double height;

    public String groupName;

    public String groupPic;

    /**
     * 语音时间
     */
    public String soundSeconds;

    /**
     * 需要 @ 成员集合
     */
    public String toMembers;

    public String level;

    public int payChannel;

    public long idKey = StringHandler.getLong(String.format("%s%s",System.currentTimeMillis(),(int)(Math.random()*899999+100000)));

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getWindowId() {
        return windowId;
    }

    public void setWindowId(String windowId) {
        this.windowId = windowId;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getGroupPic() {
        return groupPic;
    }

    public void setGroupPic(String groupPic) {
        this.groupPic = groupPic;
    }

    public String getSoundSeconds() {
        return soundSeconds;
    }

    public void setSoundSeconds(String soundSeconds) {
        this.soundSeconds = soundSeconds;
    }

    public String getToMembers() {
        return toMembers;
    }

    public void setToMembers(String toMembers) {
        this.toMembers = toMembers;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public int getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(int payChannel) {
        this.payChannel = payChannel;
    }

}



